package com.sky.service;

import com.sky.dto.*;
import com.sky.result.PageResult;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

/**
 * @author with葡萄成熟时
 * @version 1.0
 */
public interface OrderService {
    OrderSubmitVO orderSubmit(OrdersSubmitDTO ordersSubmitDTO);

    /**
     * 订单支付
     * @param ordersPaymentDTO
     * @return
     */
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);

    PageResult getOrderHistory(OrdersPageQueryDTO ordersPageQueryDTO);

    OrderVO selectOrder(String id);

    void cancelOrder(Long id);

    void repetitionOrder(Long id);

    PageResult selectAndPageOrder(OrdersPageQueryDTO ordersPageQueryDTO);

    OrderStatisticsVO selectOrderStatistics();

    void rejectOrder(OrdersRejectionDTO ordersRejectionDTO);

    void adminCancelOrder(OrdersCancelDTO ordersCancelDTO);

    void deliveryOrder(Long id);

    void confirmOrder(OrdersConfirmDTO ordersConfirmDTO);

    void completeOrder(Long id);

    void reminderOrder(Long id);
}
